# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=bcachefs-tools
pkgver=1.3.3
pkgrel=0
pkgdesc="userspace tools for bcachefs"
url="https://bcachefs.org/"
arch="all"
options="!check" # no test
license="GPL-2-or-later"
makedepends="
	cargo
	clang17-dev
	coreutils
	libaio-dev
	libsodium-dev
	llvm17-dev
	eudev-dev
	util-linux-dev
	keyutils-dev
	lz4-dev
	userspace-rcu-dev
	zstd-dev
	pkgconf
	zlib
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver-2.tar.zst::https://evilpiepirate.org/bcachefs-tools/bcachefs-tools-$pkgver.tar.zst"

build() {
	make PREFIX=/usr
}

package() {
	#make DESTDIR=$pkgdir PREFIX=/usr ROOT_SBINDIR="/sbin" install
	make DESTDIR=$pkgdir PREFIX=/usr ROOT_SBINDIR="/usr/sbin" install
}

sha512sums="
5048646d46ccc59b2ac3b4d8962f2d4c3a3ca710432971da8a8ea1530685378da84f6ac13c07092e07534c9520f76b42cf4ad885e3c63c55e457ae9f8a684d57  bcachefs-tools-1.3.3-2.tar.zst
"
